package com.huatai.datacenter.entity.dataquality;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @author gusiyi
 * @version 1.0
 * @className QualityLogEntity
 * @description 描述：
 * @date 2023/6/5 14:50
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tb_quality_log")
@ApiModel(value = "数据质量日志实体类", description = "数据质量日志实体类")
public class QualityLogEntity extends QualityBaseEntity{


	@TableId(value = "id",type = IdType.ASSIGN_ID)
	@ApiModelProperty("数据质量日志id")
	private Long id;

	@ApiModelProperty("数据模型id")
	private Long dataModelId;

	@ApiModelProperty("数据模型名称")
	private String dataModelName;

	@ApiModelProperty("上一次执行时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private LocalDateTime lastExecuteTime;

	@ApiModelProperty("下一次执行时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private LocalDateTime nextExecuteTime;

	@ApiModelProperty("上一次检查错误日志数量")
	@TableField(exist = false)
	private Long lastCheckErrLogCount;

	@ApiModelProperty("日志错误总计")
	@TableField(exist = false)
	private Long errLogCount;

}
